import request from '@/utils/request'

// 查询商户订单管理列表
export function listOrdersoperating(query) {
  return request({
    url: '/operation/ordersoperating/list',
    method: 'get',
    params: query
  })
}

// 查询商户订单管理详细
export function getOrdersoperating(orderId) {
  return request({
    url: '/operation/ordersoperating/' + orderId,
    method: 'get'
  })
}

// 新增商户订单管理
export function addOrdersoperating(data) {
  return request({
    url: '/operation/ordersoperating',
    method: 'post',
    data: data
  })
}

// 修改商户订单管理
export function updateOrdersoperating(data) {
  return request({
    url: '/operation/ordersoperating',
    method: 'put',
    data: data
  })
}

// 删除商户订单管理
export function delOrdersoperating(orderId) {
  return request({
    url: '/operation/ordersoperating/' + orderId,
    method: 'delete'
  })
}
  // 处理商户订单管理
  export function ThroOrdersoperating(orderId) {
    return request({
      url: '/operation/ordersoperating/status/' + orderId,
      method: 'post'
    })
}

